package com.eqdd.yiqidian.base;

import android.content.Context;

import com.bumptech.glide.GlideBuilder;
import com.bumptech.glide.annotation.GlideModule;
import com.bumptech.glide.load.engine.cache.ExternalCacheDiskCacheFactory;
import com.bumptech.glide.load.engine.cache.LruResourceCache;
import com.bumptech.glide.module.AppGlideModule;

/**王倩
 * Created by lv on 17-9-8.
 */
@GlideModule
public class EQDGlideModule extends AppGlideModule {
    @Override
    public void applyOptions(Context context, GlideBuilder builder) {
        builder.setMemoryCache(new LruResourceCache(10 * 1024 * 1024))
                .setDiskCache(new ExternalCacheDiskCacheFactory(context, 50 * 1024 * 1024));
    }

}